<extJS:page name="@richa.projectname@" xmlns:extJS="jelly:org.richa.tags.extjs.ExtJSTagLibrary">
	<html>
	<head>
		<extJS:script />
		<extJS:style theme="ytheme-aero"/>
		<script type="text/javascript">
			function testing()
			{
				alert ("Hello @richa.projectname@") ;
			}
		</script>
	</head>
	<body>
	
		<extJS:formwrapper width="375px" title="Customer Information">
			<extJS:listener name="@richa.projectname@FormController" bind="pageBindHandler">
				<extJS:form name="@richa.projectname@" labelWidth="100" buttonAlign="left">
				
					<extJS:fieldset name="legper" legend="Personal">
						<extJS:textfield name="name" fieldLabel="Name" width="170" value="#{cust1.name}"/>
						<extJS:numberfield name="age" fieldLabel="Age" width="45" value="#{cust1.age}" clientClick="testing" serverChange="@richa.projectname@FormHandler" sendData="field"/>
						<extJS:datefield name="dob" fieldLabel="Date Of Birth" width="100" value="#{cust1.dob}"/>
					</extJS:fieldset>
				
					<extJS:fieldset name="legaddr" legend="Address">
						<extJS:textfield name="addr1" fieldLabel="Address 1" width="170" value="#{cust1.address1}"/>
						<extJS:textfield name="addr2" width="170" fieldLabel="Address2" value="#{cust1.address2}"/>
						<extJS:textfield name="city" fieldLabel="City" width="170" value="#{cust1.city}"/>
						<extJS:numberfield name="zip" fieldLabel="Zip" width="55" maxLength="5" value="#{cust1.zip}"/>
						<extJS:textarea name="comment" fieldLabel="Comments" width="170" value="#{cust1.comments}"/>
						
						<extJS:simplestore name="state" bean="model.ExampleState" dataStore="statelist"/>
						<!-- <extJS:combobox name="states" minChars="1" store="state" triggerAction="all" selectOnFocus="true" typeAhead="true" emptyText="Select State..." mode="local" displayField="name" valueField="code" fieldLabel="State"/> -->
					</extJS:fieldset>
				
					<extJS:formbutton name="save" text="Save"/>
					<extJS:formbutton name="cancel" text="Cancel" serverClick="@richa.projectname@FormHandler" sendData="page"/> 
				</extJS:form>
			</extJS:listener>
		</extJS:formwrapper>

	</body>
	</html>
</extJS:page>